package com.hdy.framework.struts2.action;

import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;

import com.hdy.framework.tag.paging.dto.PagingDto;
import com.opensymphony.xwork2.ActionSupport;

/*
	by 何栋宇
	2013-1-25
 */
public abstract class BaseAction extends ActionSupport{
	public abstract String execute();
	public static Logger log = Logger.getLogger(BaseAction.class);
	private static final long serialVersionUID = 7050712236239352628L;
	private Map<String,Object> ajaxData = new HashMap<String,Object>();
	private String pagingInfo;
	//新增分页参数：避免点分页重新再执行拼接参数方法
	public Map<String, Object> getAjaxData() {
		return ajaxData;
	}
	public void setAjaxData(Map<String, Object> ajaxData) {
		this.ajaxData = ajaxData;
	}
	public <T> Logger getLog(Class<T> clazz){
		return Logger.getLogger(clazz);
	}
	public String getPagingInfo() {
		return pagingInfo;
	}
	public void setPagingInfo(String pagingInfo) {
		this.pagingInfo = pagingInfo;
	}
	
}
